"use strict";
var express = require('express');
var router = express.Router();
var Project = require('./../../model/Project.js');
var City = require('./../../model/City.js');
var q = require('q');

router.get('/monitorpoints', function (req, res) {
    var prj = new Project(req.query.prjId);
    prj.getMonitorPoints()
        .then(function (data) {
            res.json(data);
        });
});

router.get('/recentChanges', function (req, res) {
    var prj = new Project(req.query.prjId);
    prj.getRecentChanges(req.query)
        .then(function (data) {
            res.json(data);
        });
});

module.exports = router;